<?php if($sw):?>
<script>
location.href='clientes.com';
</script>
<?php endif;?>
<div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
        <h3 id="myModalLabel">Editar Datos de Usuario</h3>
    </div>
<div class="row-fluid">
    <div class="block-fluid">
    <div class="">
                            <div class="row-form">                                
                                <h5>Datos Personales del Usuario</h5>
                                                                 
                            </div>                                        
                            <div class="">
                                <?php echo $this->Form->create('User',array('action' => 'edita/'.$idUsuario));?>
                                <div class="row-form">
                                    <div class="span3">Nombre:</div>
                                    <div class="span9"><?php echo $this->Form->text('nombre',array('placeholder' => 'Nombre completo de la persona'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Codigo:</div>
                                    <div class="span9"><?php echo $this->Form->text('codigo',array('placeholder' => 'El codigo del usuario'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Usuario</div>
                                    <div class="span9"><?php echo $this->Form->text('username',array('placeholder' => 'Nombre de usuario'));?></div>
                                </div>
                                
                                <div class="row-form">
                                    <div class="span3">Password:</div>
                                    <div class="span9">
                                    <div id="cargapass">
                                    <a href="#" onclick="$('#cargapass').load('<?php echo $this->Html->url(array('controller' => 'Users','action' => 'ajaxpass'))?>');">Cambiar password?</a>
                                    </div>
                                    
                                    </div>
                                </div>
                                <div class="row-form">
                                <?php echo $this->Form->submit('Editar Datos',array('class' => 'btn btn-success"'));?>
                                <?php echo $this->Form->end();?> 
                                </div>
                                                       
                            </div>
                        </div>
    </div>
</div>